package com.upoint.sellorderservice.message;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Component;

/**
 * @author jsbintask@gmail.com
 * @date 2019/2/21 11:47
 */
@Component
@Slf4j
@EnableBinding(CloudStreamClient.class)
public class CloudStreamReceiver {

    @StreamListener("myMessage2")
    public void receviedMsg(Object msg) {
        log.info("received cloud stream msg: {}", msg);
    }
}
